﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Index.aspx.cs" Inherits="admin_TalkHouseSetting_Index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>

    <script type="text/javascript" src="../../js/UserTalkHouse.js"></script>

        <link rel="Stylesheet" type="text/css" href="../../Styles/right_style.css" />
    <script type="text/javascript" src="../../Scripts/jquery.ui/js/jquery.js"></script>

        <script type="text/javascript">
            function display() {
                $("#createAreaTable").fadeIn("slow");
                return false;
            }

            function hideTable() {
                $("#createAreaTable").fadeOut("slow");
                return false;
            }
    </script>
	
    <style type="text/css">
        <!--
        html{ scrollbar-base-color: #dbecf8; scrollbar-arrow-color: #2a8ed1; scrollbar-track-color: #bdddf2; scrollbar-3dlight-color: #2886c5; scrollbar-darkshadow-color: #2886c5;
        scrollbar-face-color: #dbecf8; scrollbar-shadow-color: #dbecf8;  }
        -->
    </style>	

</head>
<body>
    <form id="form1" runat="server">
            <div class="sub_right_top">
  <div class="hdm_header" >
    <div class="tb1_on"><h2 class="h2_icon">聊天室设置</h2></div>

    <div class="clear"></div>
  </div>
  <div class="hdm_footer">
   <div class="fabu_gg_title">&nbsp;新建聊天室</div>
   <div class="new_ggtz">
      <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/new_all_but.gif"
                                OnClientClick="return display()" />
    </div>  
    <div style="height:10px;"></div>    
    <table id="createAreaTable" width="99%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#77acd0" style="border-collapse:collapse;  display: none;">
      <tr bgcolor="#e4f1fd">
        <td colspan="2" align="center">新建聊天室</td>
        </tr>
      <tr>
        <td width="140">分区名称：</td>
        <td>
          <asp:TextBox ID="TxtAreaName" runat="server" Width="372px"></asp:TextBox>
        </td>
      </tr>
      <tr>
        <td width="140">欢迎词：</td>
        <td>
          <asp:TextBox ID="TxtWelcome" runat="server" Width="372px"></asp:TextBox>
        </td>
      </tr>

      <tr>
        <td width="140">聊天主题：</td>
        <td>
          <asp:TextBox ID="TxtTalkTheme" runat="server" Width="372px"></asp:TextBox>
        </td>
      </tr>
      <tr>
        <td width="140">验证码：</td>

        <td><span class="shared_yz_word">
         <asp:TextBox ID="TxtValidatorCode" runat="server" Width="324px"></asp:TextBox>
        </span>
        <span class="shared_yz_img">
            <asp:Image  ID="Image1" runat="server" Height="22px" ImageAlign="AbsMiddle" ImageUrl="../../ValidationCode.aspx"
                                                Width="48px" />
        </td>
      </tr>
      <tr>
        <td width="140">
            <asp:Button ID="Back" runat="server" OnClientClick="return hideTable()" CssClass="forum_but"/>
        </td>
        <td>
            <asp:Button ID="IbtCreate" runat="server"  OnClick="IbtCreate_Click" OnClientClick="return checkCreateArea('TxtAreaName')" CssClass="queding_anniu"/>
        </td>
      </tr>
    </table>
    <div style="height:10px;"></div>            
    <asp:Repeater ID="DataList1" runat="server" OnItemDataBound="DataList1_ItemDataBound">
                                        <HeaderTemplate>
                                        <table width="99%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#77acd0" style="border-collapse:collapse; ">

                                          <tr  bgcolor="#e4f1fd">
                                            <td width="140" align="center">最后更新时间</td>
                                            <td align="center">聊天室名称</td>
                                            <td width="60" align="center">聊天室状态</td>
                                            <td width="200" align="center">聊天室操作</td>
                                          </tr>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="Label5" runat="server" Text='<%# Eval("TalkHouseLastUpTime") %>'></asp:Label></td>
                                                    <td>
                                                        <asp:Label ID="Label6" runat="server" Text='<%# Eval("TalkHouseName") %>'></asp:Label></td>
                                                    <td>
                                                        <asp:Label ID="LblState" runat="server" Text='<%# Eval("TalkHouseOpenState") %>'></asp:Label></td>
                                                    <td>
                                                        <asp:LinkButton ID="LbtEdit" runat="server" thl_id='<%# Eval("TalkHouseId") %>' 
                                                            OnClick="LbtEdit_Click">编辑</asp:LinkButton>
                                                        <asp:LinkButton ID="LbtDel" runat="server" thl_id='<%# Eval("TalkHouseId") %>'
                                                            OnClick="LbtDel_Click">删除</asp:LinkButton>
                                                        <asp:LinkButton ID="LbtOpen" runat="server" thl_id='<%# Eval("TalkHouseId") %>'
                                                            OnClick="LbtOpen_Click">开放聊天室</asp:LinkButton>
                                                        <asp:LinkButton ID="LbtClose" runat="server"  thl_id='<%# Eval("TalkHouseId") %>'
                                                            OnClick="LbtClose_Click">关闭聊天室</asp:LinkButton>
                                                        <asp:LinkButton ID="LbtDelTalk" runat="server"  thl_id='<%# Eval("TalkHouseId") %>'
                                                            OnClick="LbtDelTalk_Click">删除聊天记录</asp:LinkButton>
                                                        <input id="HidDaId" runat="server" type="hidden" value='<%# Eval("TalkHouseId") %>' />
                                                    </td>
                                                </tr>
                                            </ItemTemplate>
                                            <FooterTemplate>
                                                </table>
                                            </FooterTemplate>
                                        </asp:Repeater>
    <div style="height:20px;"></div>
  </div>
</div>

    </form>
</body>
</html>
